package com.wyq.controller;

import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
/**
 * @author 测试请求
 */
@RestController
public class HelloController {

    /**
     * 测试权限校验接口
     */
    @GetMapping("/hello")
    @PreAuthorize("@ex.hasAuthority('system:dept:list')") //登录所需权限
    public String hello(){
        return "Hello";
    }
}
